package com.jack.base.desiginmodel.observer;

/**
 * Created by zhang_j on 2019/12/23
 */
public class client {

    public static void main(String[] args) {
        Subject subject = new Subject();

        new HexObserver(subject);
        new OctlObserver(subject);
        new BinaryObserver(subject);

        subject.setState(10);

        subject.setState(15);
    }
}
